<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2019/1/4  10:48
 */
namespace app\driver\controller;

class System extends Base
{
    //检查权限作用域
    protected $beforeActionList = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ],
    ];


    /**
     *绑定银行卡
     */
    public function editbankcard()
    {
        $editbankcard =  (new \app\driver\logic\System())->editbankcard();
        return $this->ajaxReturn($editbankcard);
    }

    /**
     * 银行卡详情
     */
    public function bankcardInfo()
    {
        $bankcardInfo =  (new \app\driver\logic\System())->bankcardInfo();
        return $this->ajaxReturn($bankcardInfo);
    }
    /**
     * 解绑银行卡
     */
    public function delbankcard()
    {
        $delbankcard =  (new \app\driver\logic\System())->delbankcard();
        return $this->ajaxReturn($delbankcard);
    }
}